public class Test {
    public static void main(String[] args) {
        int[] arrary = new int[]{4,5,6,7,9,5};
        arr(arrary);
        System.out.println(arr(arrary));
    }
    public static boolean arr(int[] arrary){
        for (int i = 2; i <arrary.length ; i++) {
            if (arrary[i-2] % 2 == 1 && arrary[i-1] % 2 == 1 && arrary[i] % 2 == 1 ) {
                return true;

            }



        }
        return false;
    }
}
